package dto.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class DTONN implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<SingleEvent> eventsPreferiti;
	private List<SingleEvent> eventsDisponibili;

	public DTONN() {
		super();
		this.eventsPreferiti = new ArrayList<SingleEvent>();
		this.eventsDisponibili = new ArrayList<SingleEvent>();
	}


	public DTONN(List<SingleEvent> eventsPreferiti,
			List<SingleEvent> eventsDisponibili) {
		super();
		this.eventsPreferiti = eventsPreferiti;
		this.eventsDisponibili = eventsDisponibili;
	}


	public List<SingleEvent> getEventsPreferiti() {
		return eventsPreferiti;
	}


	public void setEventsPreferiti(List<SingleEvent> eventsPreferiti) {
		this.eventsPreferiti = eventsPreferiti;
	}


	public List<SingleEvent> getEventsDisponibili() {
		return eventsDisponibili;
	}


	public void setEventsDisponibili(List<SingleEvent> eventsDisponibili) {
		this.eventsDisponibili = eventsDisponibili;
	}

	public boolean isValid()
	{
		return (!eventsDisponibili.isEmpty() || !eventsPreferiti.isEmpty());
	}
}
